﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PartyFinderMP.master" AutoEventWireup="true" CodeFile="CreateParty.aspx.cs" Inherits="Index_CreateParty" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"></asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div>
        <h2>Opret et party: </h2>
        <div class="BoxOuter">
            <div class="BoxInner">
                <table>
                    <tr>
                        <td> 
                            <asp:TextBox ID="TxtTema" Width="456px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" WatermarkText="Title (tema)" TargetControlID="TxtTema" runat="server" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtTema" ValidationExpression=".{1,64}" ErrorMessage="Indtastning forkert" Display="Dynamic" runat="server" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtTema" Display="Dynamic" ErrorMessage="Mangler indtastning" runat="server" />
                           
                            <asp:CalendarExtender ID="CalendarExtender1" TargetControlID="TxtDate" Format="dd-mm-yyyy" runat="server" />
                            <asp:TextBox ID="TxtDate" Width="110px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" WatermarkText="Dato dd-mm-yyyy" TargetControlID="txtDate" runat="server" />
                            
                            <asp:TextBox ID="TxtTime" Width="60px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" WatermarkText="Kl. tt:mm" TargetControlID="TxtTime" runat="server" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ControlToValidate="TxtTime" ValidationExpression="^(1[0-2]|0[1-9]):(1[0-5]|0[0-9])$" ErrorMessage="Forkert indput" Display="Dynamic" runat="server" />

                            <asp:TextBox ID="TxtDuration" Width="60px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" WatermarkText="Varighed" TargetControlID="TxtDuration" runat="server" />
                            <asp:RangeValidator id="RangeValidator3" ControlToValidate="TxtDuration" Type="Integer" ErrorMessage="" MinimumValue="1" MaximumValue="24" runat="server" />
                        </td>
                    </tr>

                    <tr>
                        <td>
                            <div class="PartyTxt1">
                                Medbring:
                           
                                Mad
                                <asp:CheckBox ID="CheckBoxFood" runat="server" />
                                <asp:MutuallyExclusiveCheckBoxExtender ID="CheckBox1" TargetControlID="CheckBoxFood" Key="CheckBoxesFood" runat="server" />

                                Drikkevarer
                                <asp:CheckBox ID="CheckBoxDrink" runat="server" />
                                <asp:MutuallyExclusiveCheckBoxExtender ID="CheckBox2" TargetControlID="CheckBoxDrink" Key="CheckBoxDrink" runat="server" />

                                <asp:TextBox ID="TxtComment" Width="470px" runat="server" />
                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender10" WatermarkText="Andet der skal medbringes" TargetControlID="TxtComment" runat="server" />
                            </div>
                        </td>
                    </tr>

                </table>
            </div>
        </div>

        <br />

        <div class="BoxOuter">
            <div class="BoxInner">
                <h4>Venne liste:</h4>
                <div id="form1">
                    <table>
                        <tr>
                            <td>
                                <asp:ListBox ID="ListBox1" Width="378px" SelectionMode="Multiple" runat="server" />
                                <asp:ListBox ID="ListBox2" Width="378px" SelectionMode="Multiple" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" Font-Names="Verdana" Font-Size="10pt" runat="server" />
                                <asp:Button ID="Button1" Width="188px" Text="Tilføj" OnClick="Select_Click" runat="server" />
                                <asp:Button ID="Button2" Width="187px" Text="Tilføj alle" OnClick="SelectAll_Click" runat="server" />
                                <asp:Button ID="Button3" Width="187px" Text="Fjern alle" OnClick="RemoveAll_Click" runat="server" />
                                <asp:Button ID="Button4" Width="186px" Text="Fjern" OnClick="Remove_Click" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>

        <br />

        <div class="BoxOuter">
            <div class="BoxInner">
                <h4>Addresse på festen:</h4>
                <table>
                    <tr>
                        <td>
                            <asp:TextBox ID="TxtStreet" Width="256px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" WatermarkText="Vejnavn" TargetControlID="TxtStreet" runat="server" />

                            <asp:TextBox ID="TxtStreetNr" Width="52px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" WatermarkText="Nr." TargetControlID="TxtStreetNr" runat="server" />

                            <asp:TextBox ID="TxtDepartment" Width="52px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender7" WatermarkText="Etage" TargetControlID="TxtDepartment" runat="server" />

                            <asp:TextBox ID="TxtZipCode" Width="60px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender8" WatermarkText="Postnr" TargetControlID="TxtZipCode" runat="server" />

                            <asp:TextBox ID="TxtTown" Width="254px" runat="server" />
                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender9" WatermarkText="By" TargetControlID="TxtTown" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="BtBack" runat="server" CssClass="btn" Width="377px" Text="Tilbage" OnClick="BtBack_Click" />
                            <asp:Button ID="BtSubmit" runat="server" CssClass="btn" Width="377px" Text="Opret" OnClick="BtSubmit_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <br />
</asp:Content>
